package cn.kbyue.swaggerdemo.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/doc")
@Api(value = "文档", tags = "文档 tag")
public class DocController {

    @ApiOperation(value = "测试文档")
    @GetMapping("/test")
    public ResponseEntity<String> test() {
        return ResponseEntity.ok("success..");
    }

}
